package com.fulihui.usercore.dal.mapper;

import com.fulihui.usercore.dal.dataobj.UserAddressDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * Created by Willard.Hu on 2016/5/17.
 */
public interface UserAddressMapper {

    void insert(UserAddressDO userAddressDO);

    boolean update(UserAddressDO userAddressDO);

    boolean cancelUserAddrDefault(String userId);

    boolean delete(@Param("id") long id, @Param("userId") String userId);

    UserAddressDO queryByPK(@Param("id") long id, @Param("userId") String userId);

    List<UserAddressDO> query(UserAddressDO condition);
}
